﻿using Basic.FormRemoteModel.QueryTable;
using Basic.FormRemoteModel.QueryTable.Model;
using Basic.FormService.Interface;
using WeDonekRpc.Client.Interface;

namespace Basic.FormService.RpcEvent
{
    internal class PhyQueryBodyEvent : IRpcApiService
    {
        private readonly IPhyQueryBodyService _Service;

        public PhyQueryBodyEvent ( IPhyQueryBodyService service )
        {
            this._Service = service;
        }

        public PhyQueryTableBody[] GetPhyQueryForm ( GetPhyQueryForm obj )
        {
            return this._Service.GetBody(obj.FormId, obj.IsHidden);
        }
        public PhyQueryCol[] GetPhyQueryTableCol ( GetPhyQueryTableCol obj )
        {
            return this._Service.GetTableCols(obj.Id);
        }

    }
}
